<template>
  <div v-if="dialogShow" class="dialog">
    <component :is="dialog"> </component>
  </div>
</template>

<script lang="ts">
import { Vue, Component } from "vue-property-decorator";
import InspetionHistory from "./CInspetionHistory.vue";
import InspetionTable from "./CInspetionTable.vue";
import InspetionVideo from "./CInspetionVideo.vue";
@Component({
  name: "dialogs",
  components: {
    InspetionTable,
    InspetionHistory,
    InspetionVideo
  }
})
export default class extends Vue {
  get dialog() {
    return this.$store.getters["videoPanel/dialog"];
  }
  get dialogShow() {
    return this.$store.getters["videoPanel/dialogShow"];
  }
}
</script>

<style lang="scss" scoped>
.dialog {
  pointer-events: none;
  z-index: 2000;
  & > * {
    pointer-events: auto;
  }
}
</style>
